package com.fqgj.sentry.statistics;


import com.fqgj.report.statistics.dao.BiGpsStatDao;
import com.fqgj.report.statistics.entity.RiskBiGpsStatEntity;
import com.fqgj.sentry.statistics.enums.GpsQueryTypeEnums;
import com.fqgj.sentry.statistics.service.GpsStatisticsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * Created by ykpbean kangping.ying@yuntu-inc.com
 *
 * @description
 * @create 2017-10-18 下午4:40
 */
@Service
public class GpsStatisticsServiceImpl implements GpsStatisticsService {
    @Autowired
    private BiGpsStatDao biGpsStatDao;

    /**
     * gps 分布
     *
     * @param source
     * @param isNew
     * @param startDate
     * @param endDate
     * @return
     */
    @Override
    public List<RiskBiGpsStatEntity> selectGpsList(String source, Integer isNew,
                                                   String startDate, String endDate,
                                                   GpsQueryTypeEnums GpsQueryTypeEnums) {
        return biGpsStatDao.selectGpsList(source, isNew,
                startDate, endDate, GpsQueryTypeEnums.getType());
    }
}
